package com.open.capacity.task.controller;

import com.open.capacity.common.exception.controller.ControllerException;
import com.open.capacity.common.web.PageResult;
import com.open.capacity.task.service.TaskReplyService;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.Map;

/**
 * 这是任务列表-查看评论
 */
@Slf4j
@RestController
@Api(tags = "TaskReply API")
@RequestMapping("/taskReply")
public class TaskReplyController {

    @Resource
    private TaskReplyService taskReplyService;

    /**
     * 任务列表查看评论
     * @param params
     * @return
     * @throws ControllerException
     */
    @PostMapping("/taskComment")
    public PageResult taskComment(Map<String, Object> params){
        return taskReplyService.findCommnet(params);
    }
}
